"use strict";

/**
 * 用户相关接口调用
 */
import Ajax from "../libs/ajax";
import Constant from "../libs/constants";
import TimeUtils from "@/libs/time"

export default {

    getTraffic() {
        let date = TimeUtils.getStr(new Date(), 'yyyyMMdd')
        return Ajax.ajax({
            url: `${Constant.URL_GET_TRAFFIC}?date_from=${date}000000&date_to=${date}235959`,
            method: 'get',
            timeout: 100 * 1000
        }).then(res => res.data)
    }
}